function clac(n1: number, n2: number, fn: (num1: number, num2: number) => number) {
    return fn(n1, n2)
}
const rest1 = clac(20, 30, function (a1, a2) {
    return a1 + a2
})
const rest2 = clac(20, 30, function (a1, a2) {
    return a1 * a2
})
console.log('====================================');
console.log(rest1);
console.log(rest2);
console.log('====================================');